package com.viptail.xiaogouzaijia.view.activyty;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.view.View;
import android.widget.ImageView;

import com.hannesdorfmann.mosby.mvp.MvpBasePresenter;
import com.hannesdorfmann.mosby.mvp.MvpPresenter;
import com.viptail.xiaogouzaijia.R;
import com.viptail.xiaogouzaijia.api.ExceptionHandle;
import com.viptail.xiaogouzaijia.view.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class WalletActivity extends BaseActivity {

    @BindView(R.id.wallet_back)
    ImageView walletBack;

    @Override
    public int getContentId() {
        return R.layout.activity_wallet;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }

    @NonNull
    @Override
    public MvpPresenter createPresenter() {
        return new MvpBasePresenter();
    }

    @Override
    public void onSuccess(Object o) {

    }

    @Override
    public void onFail(ExceptionHandle.ResponeThrowable e) {

    }

    @Override
    public void onFinish() {

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // TODO: add setContentView(...) invocation
        ButterKnife.bind(this);
    }

    @OnClick(R.id.wallet_back)
    public void onClick(View view) {
        switch (view.getId()){
            case R.id.wallet_back:
                finish();
                break;
        }
    }
}
